package rpg.map;

import square.data.MapData;

/**
 *
 * @author Pedro Silva Moreira
 */
public class Map extends MapData {

    // Creation
    public Map(String name, int w, int h, int t) {
        setName(name);
        setLocations(new Location[w][h][t]);
        for (int x = 0; x < w; x++) {
            for (int y = 0; y < h; y++) {
                for (int z = 0; z < t; z++) {
                    getLocations()[x][y][z] = new Location(this, x, y, z);
                }
            }
        }
    }
    
    // Shortcut
    @Override
    public Location getLocation(int x, int y, int z) {
    	return (Location) super.getLocation(x, y, z);
    }
}
